﻿using Code;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Models {
    public class SystemSetting {
        public int Id { get; set; }
        /// <summary>
        /// 系统类型，有且为唯一值
        /// </summary>
        [Required, Column("SystemType", TypeName = "int")]
        public SystemType SystemType { get; set; }

        /// <summary>
        /// 对应的其它类型，可为空
        /// </summary>
        [ Column("OtherType", TypeName = "nvarchar(20)")]
        public string OtherType { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        [Required, Column("SystemValue", TypeName = "nvarchar(200)")]
        public string Values { get; set; }
    }
}
